<template>
	<view>
		<!-- 模糊背景 -->
		<view class="topic-bg">
			<image src="../../static/topic/topic-bg.png" mode="heightFix" lazy-load></image>
			</view>
		<view class="topic-info">
			<view class="topic-info-heard">
				
				<view class="topic-info-desc">
					<view class="">#{{ topicInfo.topicName }}</view>
					<view class="">{{ topicInfo.topicNum }}人发表此动态</view>
				</view>
				<image :src="topicInfo.topicPic" mode="widthFix" lazy-load></image>
			</view>
			
		</view>
	</view>
</template>

<script>
export default {
	props: {
		topicInfo: Object
	}
};
</script>

<style lang="less" scoped>
.topic-bg {
	width: 100%;
	height: 280rpx;
	position: relative;
	overflow: hidden;
	image {
		position: absolute;
		width: 100%;
		border-bottom-left-radius: 20rpx;
		border-bottom-right-radius: 20rpx;
	}
}
.topic-info {
	position: relative;
	padding: 0 40rpx;
	
	.topic-info-heard {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		position: absolute;
		bottom: 15rpx;
		width: 100%;
		right: 20rpx;
		
		image {
			vertical-align: middle;
			width: 180rpx;
			height: 180rpx;
			border-radius: 20rpx;
		}
		
		.topic-info-desc{
			display: flex;
			flex-direction: row;
			justify-content: space-around;
			align-items: flex-end;
			margin-left: 40rpx;
			
			&>view:first-child{
				color: #FFFFFF;
				font-size: 38rpx;
			}
			&>view:last-child{
				margin-left: 20rpx;
				color: #FFFFFF;
				font-size: 28rpx;
			}
		}
	}
}
</style>
